Capture of stylized TV table data via OCR

ABSTRACT

In certain implementations consistent with the present invention, a method of detecting text in a television video display table involves saving a frame of video to a memory device; determining that the frame of video contains a table having cells containing text; storing a working copy of the frame of video to a memory; isolating text in the table by: removing any table boundaries from the image; removing any cell boundaries from the image; determining if the image has three dimensional or shadow attributes and removing any three dimensional or shadow attributes identified; thereby producing text isolated against a contrasting color background; and processing the isolated text using an optical character recognition (OCR) engine to extract the text as data. This abstract is not to be considered limiting, since other embodiments may deviate from the features described in this abstract.

CROSS REFERENCE TO RELATED DOCUMENTS

This application is related to U.S. patent application Ser. No. 11/706,919 filed Feb. 14, 2007, 11/706,890 filed Feb. 14, 2007, 11/715,856 filed Mar. 8, 2007 and 11/706,529 filed Feb. 14, 2007, all to Candelore, which are hereby incorporated herein by reference.

COPYRIGHT AND TRADEMARK NOTICE

A portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights whatsoever. Trademarks are the property of their respective owners.

BACKGROUND

The majority of US households receive television content through cable television systems. Such systems have traditionally used a few OEM suppliers of hardware (e.g., set top boxes) and have not provided for integration of non-security navigation functionality of set-top boxes directly into digital television (TV) sets. Under the so called “Plug and Play” agreement, the CableCARD™ adapter card was standardized as a way to adapt consumer electronics (CE) “navigation” devices to cable networks. While CableCARD™ standardization had promise, it was crippled by a lack of cable operator support, access to only a 1-way, lower tier of service, and no service-supplied metadata. With the advent of Switch Digital service, cable operators are further depreciating 1-way service by eliminating access to even some of the “basic” content.

Cable television Multiple Service Operators (MSOs) are presently establishing a new digital TV standard referred to as Open Cable Application Platform (OCAP) which will provide access to enhanced, 2-way functionality with unrestricted access to premium and high-value interactive services. Under this scenario, metadata (and the user interface) will be managed by OCAP applets downloaded to set-top boxes sold at retail. There is discussion about downloading OCAP applets to devices connected to those set-top boxes—so called “endpoints” in the home network. In this way, the cable operators can be assured of the “proper display” of their user interface when playing back cable content.

Unfortunately, under the OCAP model, CE manufacturers remain stymied because there does not appear to be a way to gain access to the metadata in order to create an alternative user interface to that supplied via the OCAP application. It is currently not possible to manage content in new ways that the customer might find compelling. Hence, this standard may force consumer electronics companies to conform to the user interfaces (UIs), Electronic Program Guides (EPGs), download protocols, and feature sets, defined by the Multiple Service Operators (MSOs) using the OCAP standard. Unless a television receiver device such as a TV set conforms to the OCAP standard (and its associated restrictions), it will be unable, among other things, to receive the meta-data related to the digital content. Without this meta-data, the television receiver will be unable to display any information related to the content including EPG descriptive material. As a result, improvements in technology, improved user interfaces and other features developed by such consumer electronics companies that are incompatible with the MSO supplied OCAP interface may be unusable in an OCAP environment. Additionally, the consumer will be stuck with whatever user interface and EPG capabilities their cable television supplier wishes to provide.

Internet services exist that can provide the desired descriptive material, however, to use such services, it is generally necessary to know the service provider, the time, and the channel number of the program being viewed. In a configuration where the set top box (STB) is simply streaming decoded video to the TV (i.e., the STB is used just as a tuner/decoder), the virtual channel number associated with the video is unknown. Without the virtual channel number, Internet services that provide meta-data or descriptive material cannot be used.

BRIEF DESCRIPTION OF THE DRAWINGS

Certain illustrative embodiments illustrating organization and method of operation, together with objects and advantages may be best understood by reference detailed description that follows taken in conjunction with the accompanying drawings in which:

FIG. 1 is an example flow chart depicting an exemplary process for acquisition of an electronic program guide in a manner consistent with certain embodiments of the present invention.

FIG. 2 is an example of an EPG screen containing metadata that can be captured in a manner consistent with certain embodiments of the present invention.

FIG. 3 is another example of an EPG screen containing metadata that can be captured in a manner consistent with certain embodiments of the present invention.

FIG. 4 is an example of a detail page in an EPG with metadata that can be captured in a manner consistent with certain embodiments of the present invention.

FIG. 5 is a block diagram of an example STB access device and an example digital TV control device consistent with certain implementations of the present invention.

FIG. 6 is an example set of special characters that can be recognized in a manner consistent with certain embodiments of the present invention.

FIG. 7 is a flow chart of an example method consistent with certain embodiments of the present invention.

FIG. 8 is a state diagram depicting operation in a manner consistent with certain embodiments of the present invention.

FIG. 9 is an example flow chart of a process for processing stylized tables consistent with certain example embodiments of the present invention.

FIG. 10 is an illustration depicting an example set of cells in a stylized table.

FIG. 11 is an example of the cells of FIG. 10 with the borders symbolically removed.

FIG. 12 is an example of the cells of FIG. 11 with the shadow feature symbolically removed.

FIG. 13 is an example of the cells of FIG. 12 with the background unified to provide contrasting text and background.

DETAILED DESCRIPTION

While this invention is susceptible of embodiment in many different forms, there is shown in the drawings and will herein be described in detail specific embodiments, with the understanding that the present disclosure of such embodiments is to be considered as an example of the principles and not intended to limit the invention to the specific embodiments shown and described. In the description below, like reference numerals are used to describe the same, similar or corresponding parts in the several views of the drawings.

The terms “a” or “an”, as used herein, are defined as one, or more than one. The term “plurality”, as used herein, is defined as two, or more than two. The term “another”, as used herein, is defined as at least a second or more. The terms “including” and/or “having”, as used herein, are defined as comprising (i.e., open language). The term “coupled”, as used herein, is defined as connected, although not necessarily directly, and not necessarily mechanically. The term “program” or “computer program” or similar terms, as used herein, is defined as a sequence of instructions designed for execution on a computer system. A “program”, or “computer program”, may include a subroutine, a function, a procedure, an object method, an object implementation, in an executable application, an applet, a servlet, a source code, an object code, a shared library/dynamic load library and/or other sequence of instructions designed for execution on a computer system.

The term “program”, as used herein, may also be used in a second context (the above definition being for the first context). In the second context, the term is used in the sense of a “television program”. In this context, the term is used to mean any coherent sequence of audio video content such as those which would be interpreted as and reported in an electronic program guide (EPG) as a single television program, without regard for whether the content is a movie, sporting event, segment of a multi-part series, news broadcast, etc. The term may also be interpreted to encompass commercial spots and other program-like content which may not be reported as a program in an electronic program guide.

Reference throughout this document to “one embodiment”, “certain embodiments”, “an embodiment”, “an example”, “an implementation” or similar terms means that a particular feature, structure, or characteristic described in connection with the embodiment, example or implementation is included in at least one embodiment, example or implementation of the present invention. Thus, the appearances of such phrases or in various places throughout this specification are not necessarily all referring to the same embodiment, example or implementation. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments, examples or implementations without limitation.

The term “or” as used herein is to be interpreted as an inclusive or meaning any one or any combination. Therefore, “A, B or C” means “any of the following: A; B; C; A and B; A and C; B and C; A, B and C”. An exception to this definition will occur only when a combination of elements, functions, steps or acts are in some way inherently mutually exclusive.

Throughout this document, optical character recognition and similar technologies are used to convert characters appearing on video screens to text or other useful information. The terms “text” and “characters” should therefore be interpreted inclusively in the context of the description, such that the term “text” may include special characters, numbers and symbols, etc. In the context of the discussion of stylized tables the term “removing” should be interpreted to mean either literally removing an element from an image, changing the element in the image to eliminate its effect on character recognition or ignoring a part of the image containing the element.

In certain embodiments consistent with the present invention, remote control devices are utilized. Most prevalent of such devices include relatively small hand-held battery operated controllers that art roughly five to ten inches in length and one to four inches wide. Such devices use infrared (IR) and/or radio frequency (RF) transmissions to send encoded control messages to a target device such as a television, recorder, player, access device, set top box, control device, etc. Currently, the most prevalent class of such devices use a numeric key pad along with dedicated command keys such as [ON], [MENU], [PLAY], [RECORD], [GUIDE], etc. commands and keys representing channel and volume up and down incrementing commands. Most also incorporate either a jog shuttle or other key, joystick or other manually manipulable control mechanism that can be used to navigate about on screen displayed menus and the like. Examples include [UP], [DOWN], [LEFT] and [RIGHT] command keys that operate to move a cursor on screen together with a [SELECT] (or equivalently [ENTER]) key that is used to select a highlighted menu selection.

However, embodiments consistent with the present invention are not to be considered to be limited to the exact command structure or command sequence structure that are used in the remote control paradigm used in such conventional remote controller devices. Equivalently, television devices that are more computer based may utilize a point and click paradigm for navigation of menus to issue equivalent commands. So, a mouse, trackball, touch pad or other pointer device used in conjunction with a selection mechanism (e.g., a right or left click of a dual switch mouse) can produce equivalent set of commands and are entirely equivalent for purposes of defining embodiments consistent with the present invention. Thus, playback from a personal computer (PC) device using Microsoft WINDOWS MEDIA PLAYER™ might include a sequence of operations including pointing to a WINDOWS MEDIA PLAYER™ icon, clicking on the icon, pointing to a “Library” tab and clicking on the “Library” tab, pointing to an “all video” menu selection and clicking, followed by pointing to a video selection and clicking. Such a paradigm generally includes action of a pointing device to point followed by clicking a pointer select button to implement a selection operation. Thus, in a similar manner, if a user is to implement a [MENU] or [GUIDE] or [PVR] command using such a point and click paradigm, the operation would involve manipulation of an on-screen cursor to a desired menu location (icon, text, logo, image, thumbnail, etc.) representing a [MENU] or [GUIDE] or [PVR] function followed by an operation that selects the command associated with the cursor location. For purposes of embodiments of this invention, this sequence of operations is intended to be embraced in its entirety by the shorthand notation of [MENU] or [GUIDE] or [PVR] without regard for how such sequence of commands are implemented.

At this writing, cursor movements have been implemented using any number of functions including detection of wrist or hand motion using inertial detectors, sometimes in connection with detection of gravitational force as an up-down reference point. Movement to a particular cursor location (e.g., an edge or corner of the screen) can be used to invoke a particular menu. An example of such devices is produced by Hillcrest Laboratories, Inc. of Rockville, Md. which uses a scroll wheel and select buttons in conjunction with motion sensing technology (referred to as Spontaneous Navigation™) configured in a circular doughnut shaped device that is hand held. In this device, navigation is carried out by movement of the hand or wrist, and such movements are used in cooperation with selection buttons and a scroll wheel. However, this paradigm is but a newer incarnation of point and click functions that use different hand motions than those, for example, of a computer mouse.

Hence, in summary, when bracketed commands such as [ON], [PVR], [MENU] or [GUIDE] are used herein, it is to be understood that equivalent functions can be carried out by point an click interfaces or other user interface paradigms without departing from the teachings consistent with embodiments of the present invention. Such point and click implementations are functionally identical and within the scope of the present claims in that any command that implements the bracketed command will produce the video frame that can be interpreted by optical character recognition (OCR) process analysis.

Embodiments consistent with the present invention may be carried out using any number of control devices including television sets and other devices using or incorporating television receivers and/or the OCR functions described herein including digital television sets, set top boxes, set back boxes, digital video recorders, Blu-ray recorders, optical disc recorders, disc drive recorders and other devices without limitation. Any exemplary illustrations depicted herein using any one such receiver device (e.g., a digital TV) should be interpreted as inclusive of any such device. Moreover, while the embodiments discussed herein by way of example describe operation under cable television distribution systems, the technology can similarly be applied to content delivered by satellite or Telco operators. For purposes of the present discussion, the term “access device” is intended to mean a device such as a television set top box or other terminal that has direct access to the service provider's metadata through digital data communication, whereas the term receiver device is generally intended to represent the device that receives video content from the access device, but is unable to directly access the digital representation of the metadata. The receiver device, by virtue of becoming the master to the access device in accord with embodiments consistent with the present invention is also referred to as a control device.

One of the primary constraints to providing a CE company with the ability to provide their own control mechanism is the potential inability to access the metadata associated with digital television programming. Normally such metadata are provided by the MSO to an approved (e.g., leased) access device. There are three aspects to such metadata—navigation, scheduling and program information.

Navigation data are information that allows an application to know that a particular channel (e.g., channel “KPBS”) can be found on a particular logical channel (e.g., channel “15”). (In the case of interactive services such as video on demand (VOD), there is no logical channel, and the program is launched by negotiating a number of on screen displays (OSDs) and finally selecting the appropriate field from a list of choices.)

Scheduling data are information that lets an application know that a particular program (e.g., the “Newshour” program) starts at a particular time and will last for a particular duration (e.g., starts at “7 pm” and will last 1 hour). (Impulse Pay Per View (IPPV) is broadcast and therefore has a dedicated start time, while VOD runs on individual sessions and can start anytime.)

Program data are information that provides other program related information. For example, program data lets an application know that the “Newshour” is classified as “News/Business”, contains Closed Captioning, and, like most news programs, is Not Rated. Program data may also include a short summary of the program's content.

In addition to data that are strictly considered to be metadata, by properly commanding an access device such as a set top box, one can also learn other information about the access device, service provider and user. Such other information can include service tier, model of access device, service provider name, and other information. The term metadata is sometimes loosely used herein to describe not only metadata, but also such other service related information.

An Optical Character Recognition (OCR) approach as described herein can be used to obtain all or portions of one or all three of the above metadata. If the OCR approach is not used for all of the metadata, then some type of other data source, back-channel or network connection might be used to supplement the information obtained by the OCR approach described herein. Many OCR software modules which operate on numerous operating systems can be used to carry out the OCR processes described herein, and therefore, they will not be described in great detail. By way of example, the commercially available Bizcardreader™ program can scan business cards and create a database from the information.

In accordance with certain embodiments consistent with the present invention, OCR and/or pattern recognition techniques are utilized to capture metadata and/or command information associated with digital television content from a television receiver device serving as an access device. By doing so, the control of operation of the access device and/or presentation of the metadata can be manipulated by another device (such as a television set or network server) without the constraints imposed by a cable or satellite or Telco based television service provider.

One example is depicted by flow chart 20 FIG. 1 starting at 24. Consistent with certain embodiments of the present invention, the metadata associated with the EPG that provides a schedule of the television programming (Additional reference to the example EPGs of FIGS. 2 and 3 may be helpful in readily grasping the present discussion.) can be acquired by a process wherein a device such as a television receiver (e.g., a digital TV set) instructs an access device (e.g., a cable, satellite or Telco service provider supplied set top box) to generate and communicate a signal suitable for driving a display (e.g., IEEE 1394, IP video or baseband video) at 28, wherein the signal contains a visual representation of a video frame of the metadata when displayed on a display such as the electronic program guide. This signal is received and stored in memory at 32 as a representation of the video frame containing the EPG. This video frame can then be processed at 36 using pattern matching and/or optical character recognition to extract the metadata from the video frame. As long as this data is newly displayed at 40 the process continues until all data have been displayed at which point the process ends at 44.

The extracted metadata can be stored in a metadata database at 48 for use in construction of an alternate EPG by the receiver device (i.e., one that is distinct from that of the access device). This process can be systematically repeated by repeatedly sending a paging or other incrementing command at 52 to page or step up or page step down or page or step left or page or step right (e.g., page, left arrow, right arrow, up arrow, down arrow, etc.) in order to sequence through a plurality of frames of video containing the metadata in order to access and store at least a subset of the metadata to the metadata database. Once a new page is sent, the process repeats at 32 to acquire the new page for storage in the metadata database. In this representation, the action depicted at 52 preferably pages through all available channels and all available times so that, for example the system pages to the right for all available times for a given set of channels, and then pages up or down to begin acquisition of programming information for the next set of channels (which will then be paged through all available times). In this manner a full set of program data can be acquired for all available channels and times.

It is noted that in the United States, there are a limited number of service providers available, each of which uses a more or less conventional style of electronic program guide. Two examples styles are provided in FIG. 2 and FIG. 3.

FIG. 2 is an exemplary screen shot adapted from an EPG used by DISH Network™ and FIG. 3 is an exemplary screen shot adapted from an EPG used by Comcast™ (Comcast Corporation). Actual screen shots and other attributes may be copyright or trademarks of their respective owners. It is noted that the metadata associated with the television programming schedule is, in both cases and indeed in most EPGs, presented in a spreadsheet-like format time and date increasing from left to right in half hour increments with the channel and its associated program content appearing in rows below or above the time information. Hence, all available data, usually extending out for a two week period of time, can be obtained by systematically paging right to obtain future programming content and paging up or down to obtain the content of another group of channels (usually about 5 channels per screen), with the channel and logical channel number being presented in the leftmost column.

By having prior knowledge of the service provider with which the access device is associated, the process can be simplified somewhat in that only specific portions of the captured screen image need be scanned for text data that can be acquired via the OCR process. Thus, if the programming information is to be acquired in FIG. 2 or 3 data from the lower section depicted as 60 can be scanned repeatedly, paging right to obtain programming out to any desired time in the future (so long as new data are available), and then the process can be repeated for the programming that appears after a page up or page down command in order to capture program scheduling information for the next five logical channels.

Commonly, the metadata also incorporates more detailed information about a particular program. Such information is commonly represented at least in part on the EPG screen itself for a program that is highlighted on the EPG. Examples of this are depicted as 64 in FIG. 2 or 3. This information may be complete as shown in FIG. 2 and represent the entire program detail, or may be abbreviated as shown in FIG. 3. Thus, if shown in total, the detailed information about each program can be captured by OCR processing region 64 while systematically stepping through all programs shown on the EPG. System data and time can be obtained from region 66 using similar OCR technology. Alternatively, as in the case of FIG. 3, the full program detail may not be available. In this case, an “information” command can be issued for each program in order to display a detail page 68 for the particular program such as that shown in FIG. 4. This detail page contains a more complete description of the program (i.e., full review) in region 70, system time in 74 and ratings information in region 78. It is noted that even in the case depicted in FIG. 3; it may be desirable and possible to go to a separate detail screen for each program which may have additional information that can be acquired above and beyond that which is displayed on the main EPG screen. In accordance with embodiments consistent with the present invention, the EPG may be explored to whatever depth further information is available by traversing whatever information tree is present for the particular service at issue.

Hence, in this manner a receiver device, such as a TV without access to the native EPG data, creates a database of information from the video output of the access device. This precludes the need for the TV to directly receive digital metadata in order to create its own EPG, timers, and content data screens. Periodically (for example, once every 2 or 3 days) the TV can manipulate the access device (cable, satellite, Telco, etc.) to go through all its EPG and content data screens. This can be done through remote control infrared (IR) or radio frequency (RF) or CEA-931-B commands. When each screen is rendered, the video is thus captured and Optical Character Recognition (OCR) is run. The information is then interpreted and a content database is created. During this process, the TV can also interpret the menus, EPG and on screen displays (OSDs), to take the next step in paging through all the EPG screens. This permits extraction of information such as the name of programs, obtaining the virtual numbers for channels, e.g. HBO or CNN, etc. as well as the content. The information is stepped through and displayed to present all available current and future contents of the official guide rendered by the access device. This information is essentially a dump of all of the access device's metadata content.

The receiver device can then use the “info” command to access additional detail available for each program to collect that sub-menu data about each program. Once the TV has this information stored in its own metadata database, it can then carry out any number of actions such as create its own EPG and create timers for recording, etc. without need for direct access to the metadata and without need for any special service such as that provided by Tivo™ for the scheduling data required. All the data comes from the video of the slaved access device such as a cable set-top box.

The TV receiver device can obtain its sense of time from the menus of the slave access device (such as a set-top box) by accessing the system time and date, e.g., from region 66 of FIG. 2, or by user entry. Also, since an actual human is not processing the screens, the menus can be robotically stepped through. It might take only minutes to display OCR process and capture the metadata from all the screens. The video screens can be interpreted one at a time or the images can be batched and processed all at one time (e.g., during an initial operation and then subsequently at periodic intervals of each day or each several days during a time that the TV is not in active use). The process would ideally, but not necessarily, be done “offline” so processing speed may not be an issue. However, only enough time is needed to briefly generate and capture each frame of the metadata in order to complete the metadata capture.

It is noted that no cooperation from the service provider is needed to carry out the processes described and no outside data source is needed (although use of an outside data source to augment the information captured as described is not precluded). Embodiments consistent with the invention display all the metadata on-screen in order to dump it from the access device receiver. All the metadata gets OCR processed and re-recorded by the controlling device, e.g. the digital TV. No other data source is needed so the limitations imposed by withholding access to the metadata are effectively circumvented. Moreover, embodiments may be utilized to communicate through video with no dedicated back channel. The embodiments disclosed does require a mechanism to control the operation of the access device, e.g. an IR transmitter to transmit commands, but then the information received is sent only as a video representation. Hence, in some embodiments, an unsightly set top box access device could even be totally hidden from view and controlled by a remote control device using any suitable command mechanism.

Now consider the embodiment depicted in FIG. 5. Assume that the digital TV 102 is connected to a cable set-top box 106 serving as an access device to the MSO 110 via cable network 114. As described previously, the TV 102 tells the STB access device 106 to cycle through channels in the manner described above by sending IR or RF remote control commands or commands made by direct connection such as a CEC compliant HDMI command protocol or IEEE 1394 CEA 931-B compliant command protocol, such commands being issued as by remote command transmitter 118 that are received by a remote command interface 122. This results in STB 106 generating a display of the EPG that is sent via the video output interface 126 to a video decoder 130. The video frame representing the EPG is then displayed and captured in a frame memory 134 of the digital TV 102. An OCR function 138 implemented using an OCR engine is carried out on the stored frame stored in 134 under control of (or as a computer program running on) the digital TV's control processor 150. Once the OCR function has been carried out, the resulting information is stored in a metadata database 154, and can be used, for example, to present the viewer a different user interface (UI) via TV user interface function 158 when so commanded by a remote controller 160. Metadata database 154 may be embodied in a hard disc drive or other storage medium that is used to store the content. In other embodiments, the data can further be used to create timers for recording devices such as personal video recorders (PVR—also known as digital video recorder DVR), video tape recorders, optical disc recorders, disc drives, etc.

In accordance with embodiments consistent with the present invention, operation of the process is independent of the nature of the access device so long as the receiver device such as 102 can use some mechanism to cause the access device to cycle through its pages of EPG and other metadata. The STB 106, for example, may be enabled with an OCAP engine 162 and will generally have its own user interface function 164 that can be similarly controlled by remote controller such as 160, but utilizing embodiments consistent with the present invention, such interface can be supplanted or supplemented by capture of the metadata that would otherwise be inaccessible to the digital TV 102.

In the event the access device is instructed to tune to a channel that is not authorized, the access device can generate an OSD stating that fact. In accord with preferred embodiments, the TV can interpret the OSD and tell the viewer that another channel needs to be tuned or the service provider needs to be contacted. When the service provider is known, such screens can be readily recognized and parsed by processor 150.

In accordance with certain embodiments, the access device's UI can be totally replaced by a UI function 158 provided by the CE manufacturer without need to directly access the digital metadata provided by the MSO. In such a scenario, the metadata stored in the metadata database are used to generate a TV UI. Commands sent to the TV, for example, from a remote commander that controls the UI can then be translated at processor 150 to an appropriate command that is then transmitted by remote command transmitter 118 to remote command interface 122 so that the user can be presented with the CE manufacturer's UI, yet the net effect is that the access device 106 becomes a slave to the digital TV which acts as a master.

Metadata captured from OSDs can thus allow the CE manufacturer's TV or other receiver device to manage and proxy the service provider set-top box (or other access device) into a home network with other devices conforming to more open standards, e.g. DLNA. The TV could further act as a gateway device to transform and stream content in IP format—allowing the TV or other interconnected devices to position itself as a home media server—aggregating content, from disparate sources, and presenting a uniform user friendly interface to play and manage content.

There are at least four scenarios currently envisioned for the OCR metadata capture approach described above: 1) Local UI with compressed content output; 2) Local UI with re-compression of content; 3) Remote UI; and 4) Metadata capture without content.

1) Local UI with Compressed Output (Cable Only)

Because most households receive content through Cable, it is appropriate to discuss solutions that might be applicable to just Cable. This OCR process exploits the FCC mandated, cable implemented IEEE 1394 interface to pass compressed, copy-controlled content from access devices such as STB 106 to a controlling device, e.g. the DTV 102.

Unfortunately, while many OEM set-top boxes fielded by the cable operators have the IEEE 1394 connector, the functionality is often not enabled despite by the FCC mandate. However, a set-back box designed to mount and work with a CE manufacturer's DTV could be assured to have this interface enabled. This will be described as the “Local UI with Compressed Output” approach and is expanded upon in the paragraphs below.

The approach assumes a 2 device—OCAP-enabled set-back box and TV—combination in order to properly receive all content, output content over IEEE1394, and capture metadata by OCR'ing the video.

The 2-way interactive set-back box will likely be OCAP and CableCARD™ enabled. But, not all cable systems will be required to implement OCAP or support CableCARD™. In those systems, the following solution may be implemented:

-   -   1. If there is a CableCARD™, but no OCAP support provided, then         the set-back box can render its own EPG. {The metadata that         populates the set-back box guide will be similar to 1-way         CableCARD™-enabled receivers and may be problematic as discussed         earlier in the Background.}     -   2. The set-back box will not be used and a cable operator         supplied set-top box will be supplied instead. In this case,         “Local UI with Re-compression” or “Metadata capture without         Content”, described below in the following sections, may be         used.

The “Local UI with Compressed Output” approach exploits the IEEE 1394 interface for transmission and reception of the video as mandated by the FCC on all set-top boxes. This interface allows the TV 102 to access the compressed content. IEEE 1394 is a robust interface that solves many Quality-of-Service (QoS) issues that the service providers claim to have for their service. It has the usual compliance and robustness rules regarding its copy protection system—DTCP. However, so long as the content is safeguarded from illicit copying, the content can be shared with other devices. In this approach content can be shared without a service operator controlled application.

The approach would ideally have the TV use High Definition Multimedia Interface (HDMI) for the video screen capture and OCR operation, and pass-through of remote control commands. The on-screen display rendered by the HDMI interface is of a higher resolution than that of baseband video. And the Consumer Electronics Control (CEC) pathway which is part of that interface can be used to send remote control commands to the set-back box. Therefore, a single connector can provide both the video and set-top box control capability (i.e., serves the purpose depicted in FIG. 5 of elements 118, 122, 126 and 130 from the perspective of connection interface points for video and commands as used in accord with the above discussion). Baseband video can also be used as an alternative to HDMI for screen capture.

2) Local UI with Re-Compression

For Cable systems that do not support CableCARD™ and/or OCAP, as well as for the Satellite and Telco services, the customer will probably use a service provider supplied set-top box.

In this scenario, it will be difficult for the controlling device, e.g. the digital TV, to directly obtain content in digital form. About the only interface that is guaranteed is baseband video and audio. Such baseband video can be used in accord with the embodiments described above.

3) Remote UI

Soon, it is anticipated that content will be streaming into and around the home using IP packets. Eventually, all content might be shared this way. For bandwidth reasons, the content will likely be compressed.

Metadata may be delivered encrypted or in a proprietary format so that only certain licensed application, perhaps an OCAP applet, running on the endpoint can gain access to the native digital metadata. Standardization groups like Digital Living Network Alliance (DLNA) are trying to gain access to the metadata, but at this writing have not accomplished the goal of standardization.

In this scenario, the above-described video capture and OCR application running in the control device, e.g. the digital TV (DTV), can grab the text rendered on-screen as described. This situation will not require a “local converter” described below. The OCR application described above does not need to access any video/audio content which might be present on-screen and protected. Rather, only the “graphics plane” need be accessed.

Alternatively, another approach is to create an endpoint for the delivery of a service in a remote local set-top box. The control device would then manipulate the local converter. This problem then starts to look a lot like the “Local UI” approach described above.

4) Metadata Capture without Content

One possibility of the control device (e.g., DTV 102) is to capture metadata in order to simply be able to manipulate the service provider supplied set-top box without getting access to compressed (or re-compressed) content. In such a scenario, some of the service provider's screens may be re-rendered. The following are some examples:

PVR Content on Set-top Box

PVR timers can still be managed by the control device, e.g. DTV, by using the active buttons [Record], and, if queried about recording to the end of the show, pressing [Select] over the (YES)—a default field.

Perusing content on the PVR is generally done using the set-top box's Content List because there is no other way to identify and retrieve content from the hard disk drive. The Content List could also be OCR processed and stored to the control device's metadata database 154 as further data so that the content might be shown as available in an aggregated list of content from many sources. However, when selecting this content, the set-top box PVR screens or equivalent thereof may need to be invoked using [PVR], and [Select] over (Recorded programs) field, and then the content list will scroll using [Arrow-down] to the program of interest (which will be become highlighted). After this, [Select], [Arrow-right], [Start-over] can be selected. This can be accomplished in an automated way wherein the control device sequences through the PVR screens to select the content. This type of functionality desirably uses rapid, real-time OCR capability in order to avoid undesirable lags in performance. Also, the service provider screen generated by the access device might be hidden behind the control device (media server) screens.

IPPV Content Stored on Set-top Box

Impulse Pay-per-View (IPPV) content can also be managed by the control device such as DTV 102 in accord with certain embodiments. IPPV is a scheduled event using a logical channel and time. It is similar to a broadcast event, except that there is a purchase screen. After previously capturing the metadata from the EPG, the control device can simply enter the [Channel #], [Select] which would bring up the purchase screen. This screen can be presented to the User or auto-purchased by the control device. Purchasing typically means highlighting the (Yes) field and then selecting [Select].

Remote Control

The control device, e.g. the DTV 102, can manipulate the access device, e.g. the set-top 106 box using remote control commands just as a human would using remote controller 160. If the remote control has a “hot key” to access a certain screen, the control device can use it. If broadcast content tuned using the 10-key numeric keypad to tune, the control device can do this as well. The problem arises when options are only provided in lists in which a user must highlight in order to select. In this instance, the control device recognizes the entry in order to be able to select it. As discussed later real-time OCR provides for this capability.

If a viewer can use the remote to display program and guide information, the control device can too. And then, all this information can be OCR'ed in to a database.

Remote control commands can be issued using any the following or any other suitable interface and control device:

-   1. IR or RF blaster -   2. HDMI Consumer Electronics Control (CEC) -   3. 1394 AVC using CEA 931B -   4. Internet Protocol

The following are the minimum remote control Keycode set required by OCAP for Cable:

-   Hot Buttons: [Guide], [Cancel], [Select], [Select], [Power], [Info],     [Menu], [Exit], [Last], [Function 0-3][Favorite],[Next Favorite],     [On Demand] -   Tune: [Channel Up], [Channel Down], [RF Bypass] -   Sound: [Volume Up], [Volume Down], [Mute] -   Arrows: [Up], [Down], [Left], [Right] -   Page: [Up], [Down], [Left], [Right] -   10-key: [0, 1, 2, 3.4, 5, 6, 7, 8, 9 and multiple digit     combinations] -   Trick Play: [Fast forward], [Pause], [Rewind], [Skip Forward], [Skip     Back], [Stop], [Play], [Record]

These are the basic set that most remote controls support. Not listed by the OCAP specification were: [Pip] and [Swap].

Special Symbols

When the various EPG and OSDs used by the various service providers are examined in detail, it is apparent that some of the metadata and certain symbols used for representation of commands and other functions are represented symbolically. It is desirable for such special symbols to be recognized in the OCR process. Accordingly, the OCR process may be augmented by either addition of certain special characters to the alphabet recognized by the OCR process or characters separately recognized using any suitable pattern matching and recognition algorithm in order to assure that the process does not mistake special characters for conventional alpha-numeric symbols.

An illustration of a partial listing of such special characters is depicted in FIG. 6. Other special characters are also used by various service providers and can be similarly addressed. The Optical Character Recognition (OCR) application is preferably enabled to process such symbols. Depicted are right arrow 202, left arrow 206, up arrow 210, down arrow 214, unlocked symbol 218, locked symbol 222, star 226 (note the stars used as ratings in FIG. 3-4), half star 230 (note the half star used as ratings in FIG. 3-4) and pay symbol 234. Such symbols may be misidentified by a conventional OCR process unless modified to add them to its alphabet or unless identified by an augmenting pattern recognition process.

In the EPG display the star and half star are used for example with the key word “critique” to evaluate the quality of a program or movie, wherein more stars represent content of higher perceived quality (see area 64 of FIG. 3). The various arrows are used to show that the program entry in the EPG is off-screen before or after the current time (or both for a long program) or that there are follow-on EPG screens before or after the present one. The pay symbol 234 is used to indicate that a payment is required to view the content. The locked and unlocked symbols 222 and 218 respectively represent the state of parental control associated with a particular program. Other EPGs may further have other graphic symbols that can be represented to concisely convey various information, and detection of such symbols are contemplated hereby even if not expressly depicted.

In one embodiment, the OCR state machine is enabled to process pattern match graphics information with the rough shape of the characters depicted. The various sizes of the symbols should be considered and may vary among service providers. It is possible that once a determination has been made that a match has been found, that the graphics information can be saved. In subsequent searches, the exact pattern can be used to determine a match to accelerate the matching process. In other embodiments, the patterns can be predefined based upon a bitmap of the shapes to be detected. Thus graphics symbols are detected and the OCR and does not try to match the pattern to conventional “text”, but instead properly assigns the meaning intended in the native frame of video. Hence, the OCR program is enabled to look for these special symbols used in program and guide screens.

MSO Icon Recognition

In addition to returning special characters such as those discussed above, the OCR process consistent with certain embodiments of the present invention preferably are also able to use pattern matching or other techniques to identify, e.g., by comparison with a stored set of reference icons. The top 20 cable MSOs in the United States are the service providers for approximately 90% of all cable television customers. Hence, there are a limited number of icons that the process is to recognize, thus dramatically simplifying the task of recognition of the icons. Additionally, there are currently only two satellite DBS service providers. While the Telcos are starting to provide competing services, there are similarly very few of those as well. Hence, the icon database used for comparison could be relatively compact. By way of example, the DISH Network™ logo 302 of FIG. 2 and the Comcast™ logo 306 of FIG. 3 generally appear in one or more known locations of one or more known screens that can be displayed on command (e.g., the upper left corner of the EPG screen). The OCR process can therefore identify the content supplier by searching for its logo. Once identified, the layout and menu tree for the OSD and EPG functions can be known in advance. This factor can be used to limit searching for text and OCR recognition of text to locations where text and characters representing desired metadata are located. If there is no match, then a new icon, if one is identified, can be stored in the database.

Service provider icons are typically rendered using the top guide menu [Menu]. The location of the icon on screen should preferably be returned just as with regular text. Recognition (and also perhaps ignoring) these icons and other icons could not only help with installation of a control device with a set-top box under control but also help the state machine keep track of states. The name of the service provider may thus be used with the control device's local database when identifying the source of the programming and also to help the OCR state machine with the hierarchical menus of that particular service provider.

Where the icons used by service providers may vary somewhat in size but otherwise remain the same, the OCR process can “box-off” the icon on screen and compare it with stored icons. Various sizes of icons could be scaled and trialed to get a positive identification. In addition, the color of the icon is usually constant, thus, color matching can also be used to aid in identifying an MSO's particular icon. Additionally, the ratio of colors may also be used to assist in identification of the icon (for example ⅓ white, ⅓ Indigo, ⅙ Red, and ⅙ green). Generally, the top program scene when the [MENU] command is issued should display the service provider. If it doesn't, then the access device may have encountered a malfunction.

Icons for channels could be examined as well. Analysis might actually be to ignore them so that the rest of the text based channel content could be scanned. Other unusual graphics might be detected so that they can be ignored as well. For example, ECHOSTAR™ satellite service has a stylized “star beam” at the beginning of each channel list in the EPG. Each such unique attribute can contribute to detection of a particular service provider or service provider's icon, and thus enhance the efficiency of the OCR process by limiting the regions of the frame that are searched for metadata, and identification of an alphabet of and location of special characters that appear in the video frames.

Access Device Recognition

It is also the case that text may be used to provide valuable information that is not strictly metadata (such as STB serial number and model, service provider, software versions, etc.) It is possible for a device to use Optical Character Recognition (OCR) to examine the text in the On-Screen Display (OSD) for installation purposes of a device interfacing with another device. It is further possible, once a service provider is identified and the access device and associated software version is identified, to more readily traverse the device's command tree or menu hierarchy by use of commands from the control device.

For example, after sending the [GUIDE] remote control command, the following information can generally be obtained:

1) Service provider (e.g., ECHOSTAR™, DIRECTV™, COMCAST™, COX™, TIME WARNER™ etc.—for example by the logo identification at 302 or 306), and

2) System time (e.g., at 66, 74 or 374).

After sending the [Menu], the text on screen is OCR'ed. The [Down arrow] can be used to highlight {Installation} {install} or similar text. Then the [Select] command can be issued to enter the install screen. The install screen can be OCR processed. The [Down arrow] or other navigation command (as determined by the menu hierarchy and layout) can then be used to navigate to {System Set-up} or similar command. The setup screen can then be OCR processed. The [Down arrow] (or other navigation commands) can then be invoked until the following information is obtained by the OCR processing:

1) Model number of the access device (e.g., set-top box), and

2) Software version number for the access device's software.

Hence, embodiments consistent with the invention allow a control device to use OCR processing to learn the attributes of the access device it is controlling. It can learn the service that the set-top box is hooked up to as well as system time. The display mode setting can be determined from the picture size OSD, e.g. 4×3 or 16×9 can be determined. This can be helpful in setting-up a display device so that the image will render correctly since many devices also have their own means of formatting the image. If the access device outputs 4×3, the display device can be set for 4×3 as well. It can also be determined whether or not the access device has a “VCR set-up” menu. The VCR set-up menu might allow the access device itself to record content on external devices such as VCR or other external recording devices, e.g. Tivo™ recording devices. Any favorites that have been created by the user using the access device can be displayed and recorded by the control device thus alleviating the need for the user to reconfigure these again in the control device. Additionally, the favorites can be updated on a priority basis using the OCR processes described herein in certain embodiments. The model # and software version number can be obtained. This allows the control device to readily navigate hierarchical menus, since once these features are known, the sequence of commands necessary to navigate to any given point in the OSD or EPG or other portion of the menu system can be known.

The same type of OCR technique can be used to obtain information associated with a television access device used in a television reception system. In such a method carried out in a control device that does not have direct access to the configuration information of the access device, the control device directs the access device to generate and communicate a signal to the control device suitable for driving a display, wherein the signal contains a visual representation of one or more successive video frames containing at least one or more of the following: a service provider logo, a VOD channel accessible by the access device, a broadcast channel accessible by the access device, a program recorded on hard disk drive of the access device, an access device model identifier, access device serial number, a display output configuration, a storage configuration, a MAC address, a software version and a system time on a display. Knowledge of some of the channels available can help the control device determine the tier of service. This can be helpful in determining the channels that an access device is subscribed to. Furthermore, by analyzing the local channels, it can be determined generally where in the country the access device is located. For example, KTLA is the Los Angeles area while KFMB is San Diego. The process then involves receiving the signal and storing a representation of the video frame, and processing the video frame using optical character recognition (OCR) and pattern matching to obtain information that identifies the service provider from the logo, VOD channel, broadcast channel, content stored on the PVR, the access device model identifier, and the system time. This information can then be stored for a variety of uses by storing the extracted information in the control device. By determining such information, the control device can, for example, deduce a service tier from the data. In one example case, if certain programming appears with a particular background color (as described below) or simply appears in the program lineup, it is apparent that the user has access to the content. Thus, a service tier can be determined. In other embodiments, the model number of the access device can be suggestive of its abilities, and thus a service subscribed to (e.g., the presence of internal storage, and active menu selections for playback or display of stored content indicates that the access device is PVR enabled).

As a result, a Home Media Server can know what service a set-top box or other access device is hooked up to. The system time can be synchronized among the controlling device and any home network devices. The hierarchical menus of an access device (dependent on Model # and software version) can be determined so that further commands can more directly be issued in order to exercise control over the access device in a slave capacity. Also, by knowledge of this information, templating of the various display screens can be done from a template database to simplify the process of OCR capturing metadata as described above, since the whole frame need not be processed each time a new frame is displayed. In certain embodiments, another time source can be utilized if desired.

FIG. 7 is a flow chart 250 of an example method consistent with certain embodiments of the present invention that starts at 252. At 256 the service provider is identified (e.g., by user input or by pattern matching the provider logo). At 260, the process traverses the display screen tree to access all or a subset of the metadata for display. At 264, OCR/pattem matching is applied to each frame to extract metadata, foreground and background colors and special characters. At 268, the data are stored in the metadata database for use as desired and the process ends at 274.

Point & Click Remote Control

As previously noted, new user interfaces are being introduced that use a so called “point and click” remote control and application running in the access device. The functionality is similar to that used with PCs using the Microsoft WINDOWS™operating system. This type of remote control typically has only a few buttons, e.g. left, right and scroll. There is a cursor on screen which moves with the movement of the wrist when the remote is in a user's hand. The buttons previously found on the remote controls are now options, lists of icons, rendered on-screen. The icons appear when the cursor is moved to certain area of the screen. To select a function, the cursor must be moved over the icon and then usually a right or left click can select it. The method for obtaining metadata described herein is consistent with the “point and click” remote control. The icons must be identified and located on-screen. Later, when stepping an access device through its screens, the cursor must be moved over the appropriate icon and then the “select” command issued. To back-out of certain menus, the cursor is moved to the cancel icon with the “select” command issued. Some “point and click” remotes use either the left or right button (the one not used for the “select” function) to bring up a “home functionality” were other options can be selected on-screen, e.g. TV, Info, or PIP. All these can be automatically navigated by the control device as with the multi-button remote.

Color Processing

Color has become an important part of the information displayed in on-screen displays such as an EPG, and yet color is ignored by conventional OCR programs. Color is often used to convey various information such as the following: 1) highlighting a field (showing that the cursor is over a particular field—as illustrated by the shading of the program at channel 4 in FIG. 3 or 4); 2) authorization status in the guide (red is often used to reflect a channel with non-authorized status which would cause tuning to fail); 3) parental rating of the program; and 4) program type, e.g. movie is green, series is orange, etc.

In accordance with embodiments consistent with the invention, analysis of the frames of video stored will preferably also return the color of the background associated with each block of text found for which background color might be relevant. During installation, the highlight color of EPG data can be determined. Also, the highlight color of hierarchical menu field can be determined.

In order to extract metadata through OCR processing of an EPG, a hardware or software state machine can be created. The state machine uses up, down, page-up, page-down arrows (e.g., using an IR blaster) to step the access device set-top box through all its hierarchical menu, guide and program related screens. It would be very helpful to the state machine to confirm that a field has in fact been selected. Detection of this information can be used to assure that, the access device does not become out-of-sync with the OCR state machine of the control device, e.g. TV or Home Media Server. Once the field is selected the [Info] command or equivalent may be used with a program to get expanded information. If the field is a hierarchical menu choice, e.g. “movies” subset, then a [Select] command or equivalent would be used to transition to a screen list of movies.

Hence, in addition to conventional OCR functions, the OCR application used in preferred embodiments should also return a color code for the background of text. Care should be taken not to confuse shadowing or text highlights with the background color. Knowledge of the particular fonts used in a given service provider's access devices for a given model number and software revision can assist in assuring that the background color is actually identified.

In one embodiment, during the installation operation, a channel is selected from the guide menu. This can be accomplished in some environments by sending a channel number to the access device. The current program of the channel will then be highlighted. The background of this text can then be stored and interpreted as the “selected highlight” color. In addition, if the background color of a channel name is red, then the OCR state machine can confirm that it is a channel that is not subscribed and that the [Guide—All Channels] selection has been chosen (for example). The exact red color can be pinned down by deliberately selecting an unsubscribed channel (similar to highlighted color described above).

Also, during the installation operation, the highlight color of hierarchical menu fields can be determined. The way to do this is to compare the background colors of all the fields. The one that is different is the highlight color for hierarchical menu fields. This color will likely be different than those in the EPG.

Usually, the text itself changes color and not just the background. The color of the text while selected can also be recorded and used with the state machine to help identify selected menu elements. Knowledge of the letters can be used to make sure that pixel color from that making up a letter is chosen.

The OCR state machine can sequence through all the programs in the EPG as discussed previously. Some programs will be partially off screen as the start and stop times will not all be within the view of the EPG shown on screen. When the down arrow is used, the highlighted text can be confirmed to be that of interest.

As part of OCR processing, the location on screen is returned with the text from a particular OCR text block. The color of pixels slightly outside the block can be compared if found to be the same stored as the “background color”. The color scheme of the particular EPG is often changeable by the customer, so a determination of highlight color might have to be done whenever the OCR state machine believes it is out-of-sync with the access device set-top box unless it can be determined that the customer has changed or is changing the color scheme (through real-time OCR interpretation).

In another approach the OCR process can use knowledge of the letters in a particular block to find pixels around the text. For example, pixels from inside the “o”, “p” or “b” might be used. In the case the background and foreground colors can be readily distinguished upon identification of one of these characters and analysis of the colors of the pixels associated therewith.

OCR State Machine

In the present application, Optical Character Recognition (OCR) is preferably a software application running on a processor such as 150 of the control device, e.g. a DTV 102. The OCR process can operate on any suitable operating system such as for example Linux and can run, for example, on a MIPS CPU. The OCR capability translates video screen images of OSD text into a machine-editable text. Combined with an OCR State Machine cognizant of hierarchical menus of the target set-top box, all of the metadata may be displayed and captured into a new metadata database in the control device.

There are many commercially available versions of OCR software that can readily be adapted to the present application. The quality of OCR software has greatly improved over the years. There are modules for Linux as noted above as well as C/C++ versions that are available to allow tailoring to the present metadata capture requirements.

In order to use OCR, a video screen capture to frame memory 134 with the OSDs first takes place as described above. The capture can be BMP, JPEG or many other formats can be used. Most decoder ICs such as those commercially available from manufacturers including, but not limited to, ATI, Broadcom and Conexant have the ability to read the graphics buffer to capture what is present in the buffer to a separate file.

As previously noted, one possibility is for the controlling device to sequentially “batch” the process—go through and capture all the EPG and content data screens in separate files so that the OCR operation can be processed in the background in an off-line fashion. This would minimize the time between all the various screens.

There are a number of optimizations which may be implemented to configure the engine for the task at hand—no handwriting recognition, processing only one type of image (such as JPEG), limiting possible fonts, and limiting processing to one screen at a time. In addition, scanning might be performed only on certain sections of the screen and then verified against a relatively small list words in a database.

This approach re-creates a database of information from the video output or remote display of a “slaved” access device receiver. The video output or remote display is processed through Optical Character Recognition (OCR) technology which can recognize words. Periodically (e.g., once every 2 or 3 days) the controlling device manipulates the access device to go through all its EPG and content data screens. This can be done through remote control IR or Consumer Electronics Association Standard CEA-931-B compliant commands, for example. When each screen is rendered, the video screen is captured and the OCR process is run. The captured information is then interpreted and the metadata database is created or updated.

Example Process Overview

Below is an exemplary step by step process that can be used for an illustrative access device. Those skilled in the art will understand that other process details may be required to facilitate control of other access devices. First, it should be noted that the process will likely begin with some type installation process. However, preferably, the installation process should auto-detect the service provider and receiver from an OSD rendered thereby. This can be accomplished by manually or by trial issuing a [Menu] command and installation, the particular set-top box model number may be obtained. Knowing the particular set-top box helps with negotiating hierarchical menus and special PVR and IPPV screens.

The following example depicts the process used with a Comcast, Motorola Model # 329 access device set top box. A similar process can be devised for other access devices.

0: Installation

The receiver will be made to periodically render all its EPG and related program data in order for it to be OCR'ed into a database. This can be done during late hours of the night, e.g. 3 am, and chosen by the user in accordance with certain embodiments.

1: Initialization [Cancel], [Cancel], [Cancel]

-   -   Eliminates any OSDs which might be on-screen     -   Menus can usually nest 3 levels deep; consequently 3 or more         consecutive cancel Remote Control commands should generally         suffice to return the set-top box to its top level—i.e., a known         entry point from which the process is to proceed.         2: Top Menu: [Menu] {SCAN}     -   Should display the “Main Menu”—Main menu selections for example,         may include those shown in the tables below.     -   All content menu paths should be noted:

TV Listings Movies ON DEMAND Sports HDTV Kids

-   -   Configuration and info paths can be ignored

Search Parental Locks Favorites Messages Set-up Help

-   -   Top menu item should be highlighted     -   OCR module should recognize not only the text “TV Listings” but         also that it is selected (or permit navigation to TV Listings         and verify that the item has been highlighted).     -   If correctly highlighted, then the [Select] command is issued.

From here the process can proceed to the television program listings to display a listing similar to that of FIG. 3.

3: Inside TV Listings: [1] [Enter]

-   -   Should display the top of “TV Listings” Menu     -   {SCAN}         The following should match the database of acceptable text:     -   Channel Names (most)     -   Date, Day, Time     -   Program Names (many)     -   Rating, Closed Captioning     -   If there is no match, then extra processing may be carried out         to assure the accuracy of the text     -   A database template is filled in with data from the OCR         operation     -   [Info] should bring up the expanded program information

At this point, the expanded information such as that appearing in FIG. 4 should appear.

4: Access other main menu content:

-   Re-initialize [Cancel][Cancel][Cancel] to get to the Top Menu. -   Once at the Top Menu [Menu][page down] [page down] [select] commands     will navigate to the “On Demand” pages.     -   Once On Demand pages are displayed     -   {SCAN}     -   All content menu paths can be noted to identify the command         sequence that will permit later navigation thereto:

Movies Sports & Fitness Premiums Kids & Teens Cable Favorites Music Lifestyle Help and Services News & Info Saved Programs

Fortunately, as mentioned above, OSDs generally comprise a limited vocabulary. The words obtained through OCR can be run through a program to correct errors and filter out artifacts. While capturing the metadata, the process can be carried out in a manner that prioritizes obtaining metadata associated with programs designated by a user as a favorite with a highest priority.

The control device may also be able to key in on certain words to determine whether an error message has been placed on screen in order to take corrective action, if any. In other embodiments, the text may be compared with a stored collection of error messages that appear on OSDs in order to take corrective action.

State Diagram

A state diagram 350 depicting operation of the overall process is shown as FIG. 8. In this state diagram, the OCR process first initializes at 354. During this initialization, the following actions are carried out:

Auto-scan set-top box OSD

Installation:

Determine

-   -   Remote Control set     -   STB Model #, features     -   Service Provider     -   System Time

The following actions are then carried out:

Initialize service provider channel database

Determine

-   -   Channel Line-up (Tier of Service) (if already captured, any         changes)     -   Local Line-up     -   Correct Local Channel Names     -   Determine HD/SD assignments

Control then passes to 358 where the following actions are carried out:

Determine where 2 week guide is out-of-date, and go get data to populate database:

-   Line-up beginning of guide -   Acquire schedule, -   Program name Info -   Acquire [info] for each program -   Inventory content on HDD, space available

The process then determines if the channel map has changed at 362 and if so, returns to 354. If not, the process sleeps at 366 until a designated or waits for a designated time period and then returns to 358.

Real Time OCR

It is possible for interactive programs, such as a VOD or programs recorded on the hard disk drive, to be selected from the list by the control device. The application running on the media server can sequence the set-top menus by invoking and traversing VOD screens, and finding the name of the program in the set-top box list and then sending [Select].

As an alternative to “real-time” OCR processing, a control device might attempt VOD or PVR screens to learn the index and position of the content in the various screens ahead of time, e.g. when the basic guide content is acquired. Upon selection by the user, the user provider screens must be re-invoked, but they would be mechanically stepped through without immediate interpretation.

Another possibility to real-time or prior OCR processing, is a mode where certain service provider screens are allowed to be rendered on the TV screen—a mix mode of operation. In this case, the “real-time” part might be simply the user scrolling through a list of VOD or recorded programs to find the program of interest and confirming purchase of the VOD program (if need be).

It is possible for the control device to hide the set-top box screens and only render its own screens, thus changing the look and feel of the user interface.

Installation

Ideally, installation would be a totally hands-off operation where things “just work” without user involvement. About the only thing the user need be concerned with is properly cabling the devices.

A. Trialing RC Commands

If directly connected to a set-top box, the control device can determine whether or not the set-top box is powered up or not by detecting sync signals over baseband video, Digital Visual Interface (DVI) or HDMI. The control device can trial remote control commands in order to turn on the set-top box. Confirmation will be that a sync signal is detected albeit possibly with a blank display. The RC command set can be confirmed by having the set-top box bring up the installation menu. If the menu does not render, then other possible RC codes can be trial until the menu finally renders.

B. Scanning Set-Top Box and Service

Once the installation menu renders, the control device can scan for the model ID and version of code. Next the guide menu can be rendered using [Guide]. From the guide menu, the service provider can be identified (e.g., by icon or logo 306 of FIG. 3-4 and system time can be obtained from 374 of FIG. 3.

The model number can also often be obtained as well by invoking [Menu] and [System Information]. The following can be learned using information obtained by OCR scanning of the displayed information:

-   HD capable -   DVR capable -   Number of tuners -   Hard disk drive space

By invoking [PVR], the list of programs stored on the hard disk drive may be scanned along with time remaining.

Limited Vocabulary

Program and guide information usually conforms to a limited vocabulary of text, numbers, punctuation, standard symbols, special symbols and contractions. The text for program information, e.g. plot synopsis, is limited to a 7^(th) grade dictionary plus proper names. Table 1 below is a summary of the typical current vocabulary and certain symbols and is subject to change.

TABLE 1 Limited Vocabulary Time 1:00 pm, 1:30 pm, 2:00 pm, 2:30 pm, 3:00 pm, 3:30 pm, 4:00 pm, 4:30 pm, 5:00 pm, 5:30 pm, 6:00 pm, 6:30 pm, 7:00 pm, 7:30 pm, 8:00 pm, 8:30 pm, 9:00 pm, 9:30 pm, 10:00 pm, 10:30 pm, 11:00 pm, 11:30 pm, 12:00 am, 12:30 am, 1:00 am, 1:30 am, 2:00 am, 2:30 am, 3:00 am, 3:30 am, 4:00 am, 4:30 am, 5:00 am, 5:30 am, 6:00 am, 6:30 am, 7:00 am, 7:30 am, 8:00 am, 8:30 am, 9:00 am, 9:30 am, 10:00 am, 10:30 am, 11:00 am, 11:30 am, 12:00 pm, 12:30 pm, Times not on half hour use: ( ) {example (12:05), (01:40)} Day Mon, Tues, Wed, Thu, Fri, Sat, Sun Date Year: (range 1930 to present) Month/Day {example 8/14} Program Information Rating: NR, R, PG, PG13, R, X, TVY, TVY7, TVY7FV, TVPG, TV14, TV MA, SC, L Category: Serial/Special, News, Family Series/Special Miscellaneous Closed Captioning: (CC) Audio: (Stereo) Reruns: New, Repeat Special Characters (also see FIG. 6 Program length off-screen:

,

Title is truncated: . . . Comments: Critique: Title To Be Announced Hot Screen Buttons Done, Delete, Erase, Start-over, Resume Channel Names A&E ESPN2 HN MYST SUNDw ACT-E ESPNC HOTNT NGEO TBN AMAX ESPNN HSN NICK TBS AMC FAM IC NOG/N TCM APL FLIXe IFC NTOON TDISP BBC FMC ILIFE NWI TECH BET FNC KBDI OUTCN TLC BETJ FOOD KCEC OUTLF TMAX BIO FOXSP KCNC OVAT TMCe BLOOM FSN KDEN OXGN TMCXe BRAVO FS-RM KDVR PLAY TNN BSTZ FUSE KMAS PLEX TNT CMT FX-W KMGH SCICH TOON CNBC G4 KPXC SFC TRAVL CNN GA KRMA SHOe TRIO COMW GAC KTVD SHOFe TRU-E COURT GAME KUSA SHONe TVGC CSPAN GAS KWGN SHOTe TVLND CSPN2 GOLF LIFE SHOWCe TWC D-H&L HBO2E LMN SHOWe USA D-HC HBOCM LOCAL SHOWXe VH1 DIS HBO-E LOVE SNBC VH1C D-KID HBOFE MAX-E SPCE2 VH1CR DSC HBOSE MBC SPEED VH1SO DTMS HBOZN MC SPICE WAM! D-WNG HGTV MMX-E STYLE WE E! HIS-I MSNBC STZ WGN EDUC HIST MTV STZe WORD ENCR HLMRK MTV2 STZf WSDM ESPN HLTH MTVH STZT WSTN Local Channels Affiliates {These will vary for each locality} 041- for 00, 051-00, 006-00 039-00, 015-00, 010-00 069-00, 008-00 ABC CBS NBC PBS Fox WB Recorder Interface

In certain scenarios, the service provider set-top box could directly control a DVD or Blu-ray recorder, for example, through an IEEE 1394 connection. However, service operators might wish to deploy their own recorders or add that functionality to their leased set-top boxes, thereby limiting the consumer's choices in features and manufactures. In this scenario, recording might be integrated within the STB guide—allowing the choice of either the HDD or to DVD/Blu-ray. However, several workarounds consistent with certain embodiments are also possible under several scenarios.

Scenario 1: STB with VCR Control

Some service provider set-top boxes have the following types of timers: DVR, Auto-tune, Reminder, and VCR. The VCR timer will not only tune the set-top box to the appropriate channel at the right time but will [START] and [STOP] a VCR. This feature closely integrates the desired functionality of the VCR timer into the set-top box

When a [Start] command is sent, the recorder can cause the program metadata to be displayed by sending an [Info] command back to the set-top box using the IR or RF Blaster as previously described. This causes the set-top box will render an OSD which can be OCR processed as previously described. That is, the recorder can perform a {SCAN} function using OCR processing. After which the [Cancel] command is sent which will tear down the OSD. With the VCR functionality, it is not clear whether the content would also be sent out the 1394 port. In this instance, the recorder can send an AVC command on the 1394 interface to the set-top box using the information captured from the [Info] command. Also, many set-top boxes do not support VCR functionality. In which case, one of the other scenarios below can be used.

Scenario 2: STB with PVR Using Record Indicator

The following scenario assumes a set-top box with PVR and timer functionality. With PVRs, there is a red LED (or other visual indicator) that indicates that a recording is in progress. This indicator can be used to trigger capture of the metadata. In this case, it is possible to record content to the DVD or Blu-ray recorder whenever content is also being watched and recorded to the set-top box PVR. The approach allows the service provider's user interface to be used to resolve recording periodicity, conflicts, and timer deletions. In this scenario, the recorder can monitor the Record LED on the front panel of the set-top box using a sensor placed over the Record LED or other indicator. Whenever the LED is lit, the [INFO] command can be sent via the IR blaster or CEA-931-B on IEEE 1394 or any other suitable command mechanism. An On-screen Display (OSD) can then be displayed on the video ports overlaid on the video. As with the VCR control case, this information can provide the virtual channel number and duration of the program as well as the start and stop times. System time can also be obtained from this screen as well. An OCR {SCAN} processing of this screen, will allow the recorder to share this information. Then a [CANCEL] command can be issued to cause the [INFO] screen to disappear and operation to return to the prior state. As in the VCR timer approach, if need be, the recorder can send an AVC command to direct content to the 1394 output as a Single Program Transport Stream.

It should be noted that it is possible that the [INFO] command will display information for a program being viewed and not that being recorded. Thus, confirmation of appropriate operation for a given set of equipment should be done to assure proper operation.

When the red LED goes out, the sensor that reads the LED detects a change of state and the recorder can stop recording. If the red LED stays on beyond the stop time of a program being recorded, the [INFO] command can be sent and {SCAN} again since this is indicative that a back-to-back recording may be in progress or the record time for the existing program is being extended, e.g. sports program that has not completed. If the content is different, then a new program file can be created with the new program metadata.

In another embodiment of this concept, the red LED might be covered by a sensor and different LED, e.g. with blue color, from the recorder. When the recorder is archiving content the blue LED could be turned on. A set-top box may not have a PVR and/or no red LED. As a consequence, the scenario described below might be used.

Scenario 3: STB with Without PVR Using Guide

In this scenario, selection from the guide is monitored, but no LED sensor is needed. When content is selected from the guide, remote control commands are passed through from the recorder to the set-top box using the IR Blaster or CEA-931b. The process is as follows:

Whenever the set-top box [GUIDE] button is pressed on a universal remote control or STB remote control, the recorder can become aware that scheduled content is about to be browsed and chosen from the service provider EPG. Depending upon the exact hardware and software of the STB, there will be a certain number of right and left arrows, paging up and down until finally the [SELECT] or [CANCEL] button is pressed. Both commands, [SELECT] and [CANCEL], are intercepted by the recorder. When the [SELECT] command is used, the user has just attempted to choose some content. When content is already being broadcast, then the content would be immediately tuned by the receiver. Otherwise, a timer can be created. A recorder consistent with this embodiment issues an [INFO] command instead of the [SELECT] command. The recorder can optionally display a banner which can be overlaid on the video output from the set-top box with a query such as “Do you want to archive this content to Blu-ray disc?” and can further provide for a “yes” or “no” response.

The Up/Down arrows and [SELECT] will be momentarily be interpreted by the recorder and not the set-top box. A negative answer will disable the OCR {SCAN} operations by the recorder for this visit to the Guide. An affirmative answers can cause a banner informing the user that information is being scanned to be displayed to the screen. Then the recorder sends an [INFO] command to the set-top box. A {SCAN} using OCR processing follows. The [INFO] command brings up the OSD information, and the user may be permitted to view this data or it may be masked. By analyzing the information, the recorder will know whether the program is current (playing right now) or in the future by looking at the start time and comparing it to system time (which is also shown in the Info OSD). After this the [CANCEL] command can be sent to the set-top box to tear down the OSD. At which point, the user message that information is being scanned can also be torn down by the recorder.

At this point, the [SELECT] command is actually sent through to the set-top box. When [SELECT] is sent, if the program is currently playing, the set-top box will tune to it right away. If the program is in the future, a Timer Creation OSD can be rendered on screen. This happens whether or not a set-top box is PVR enabled or not since timers can be created regardless of whether content is recorded or not.

There will be some up/down, left/right arrows until finally [SELECT] is sent. The [SELECT] command is intercepted and a second {SCAN} operation can be performed. The highlighted field is determined to see if Once, Daily, Weekly, M-F, All Episodes was selected. The same timer can be set in the recorder. In any of the cases, “yes”, “no” or “cancel”, the recorder OSD is torn down. A [SELECT] command then tears down the Timer Creation banner. At this point there should be a timer created on both the set-top box and the recorder.

Scenario 4: Moving Content from PVR to Blu-Ray Disk

Assuming the same connection scenario as in the previous case, whenever the [DVR] button is pressed on the universal remote control or other appropriate remote control, the recorder can become aware that content is about to be browsed from the Index of Recorded Programs (IRP). Browsing can be to find content to play, but might also be to delete or change the periodic timer associated with that particular content using the Action Buttons.

There will again be a certain number of right and left arrows, paging up and down until finally the [SELECT] or [CANCEL] button is pressed. These are intercepted by the recorder. In the IPR application, one of the action buttons may have been selected and not recorded content. To determine the highlighted field in the IPR application, the recorder can {SCAN} the screen using OCR processing. If it was content that was highlighted, then the situation is similar to content selected from the guide discussed previously. If content was not highlighted, e.g. one of the action buttons is being selected, then the [SELECT] command can be sent through to the set-top box.

At this point, we know that content was highlighted. The [INFO] command can be sent. At this point because this is the IRP menu, the set-top will not and should not respond to [RECORD] since it does not make sense for this menu. But for the Blue-ray recorder it can. The recorder which as been “keyed-up” can respond to the [RECORD] button to perform the following:

-   -   1) The recorder can display a banner which is overlaid on the         video output from the set-top box with a query as to whether the         user wants to move content to a Blu-ray disk.     -   2) If the answer is “Yes”, instead of sending the [SELECT]         remote control command, the [INFO] command is sent. The [INFO]         command, will cause all of the metadata associated with a         program to be displayed similar to FIG. 3 including the title         and episode number. The [INFO] screen can be OCR processed by         the recorder. An AVC command can be sent to obtain a listing         through 1394. The title and episode number can be matched with         that obtained through the OCR scan procedure. An AVC play         command can be sent for this specific content. A [CANCEL] remote         control command can then be sent to tear down the OSD. If the         answer is “No”, then a [SELECT] command can be sent without         further delay.         OCR Speed-Ups

The following are possible “procedural” improvements to the metadata collection operation:

-   1. The control device might take advantage of the viewing habits of     the user so that the most frequently watched channels and programs     have the highest priority of data collection. -   2. Programs that are scheduled for repeated recording also have a     high priority. -   3. There are a number a limited number of EPG layouts. These can be     templated to facilitate OCRing of only the information desired.     Issues with Interactive Content

Interactive content such as VOD is not found on a specific channel that can be tuned like broadcast content. There are no virtual channels which can be direct tuned. Real-time interactions between the server and the set-top box set-up unique stream sessions. Trick play commands such as pause, rewind, etc. are sent to the headend to control the play out of content.

VOD is typically “Copy Never” since the content is stored at the headend under user control. There is not much that a control device can do with this control since it cannot be archived. What would be desirable, however, is for the controlling device to be aware of this content in order to create unique selection screens advertising it. When a customer selects this content, the controlling device can sequence the service provider screens to arrive at the purchase screen. The customer can then confirm that it is his or her intent to purchase the VOD program.

The way menus are captured might allow VOD and PPV content information to be recorded as well. This information can then be re-rendered by the remote TV's EPG.

Stylized Tables

When metadata are rendered to a table, the formatting and style attributes of the table may negatively influence the OCR engine's ability to recognize characters, symbols or text within the table if no action is taken. The formatting and style attributes can often be interpreted as letters or numbers. This can confuse any post processing of the identified text. Accordingly, in some instances consistent with certain embodiments, it may be desirable to minimize or eliminate the effects of such stylized tables on the image so as to enhance the OCR engine's ability to recognize text, numbers, characters or symbols (note that these terms may be used interchangeably). In the context of the discussion of stylized tables the term “removing” should be interpreted to mean literally removing an element from an image, changing the element in the image to eliminate its effect on character recognition or ignoring a part of the image containing the element.

FIG. 9 shows a process 400 that generally depicts operation of a process for modification of attributes of a stylized table to facilitate OCR processing of the characters therein starting at 404. The process begins with making a determination as to the current state of displayed content at 408. There are a number of ways that this can be accomplished. Generally speaking, there are a limited number of styles of tables that will appear on a given type of screen (e.g., a program guide). Each cable or satellite system generally standardizes the design of such tables which only varies based upon user selections of the number of items to be displayed at once on screen. The pattern can therefore be recognized or predefined during a provisioning process or an initialization in which the user enters the name of the service provider, or location or identifies the table by a template.

By way of example, FIG. 3 depicts a table 412 having a three dimensional or shadow effect surrounding the entire table, where FIGS. 2 and 4 show no such effect on the tables therein. Generally speaking, such effects may surround an entire table's outer periphery, or could conceivably surround each cell in the table.

In light of the above, the state of the current display can be ascertained by noting what remote controller buttons have been pressed (e.g., [GUIDE], or [PVR]) which would lead to display of a frame of video that contains a stylized table as determined at 416. In another example implementation, the presence of a stylized table can be ascertained by pattern matching of known table styles within the frame as alluded to above, while in another example implementation the presence of quadrants, and rectangular shapes of various known sizes (i.e., large enough to contain readable text) can be used as an indicator that a possibly stylized table has been identified at 416.

When the potentially stylized table has been identified at 416, a working copy of the frame of displayed video is saved as an image to memory so that it can be manipulated to remove, ignore or replace the stylized attributes that might interfere with the OCR engine's operation at 420. A process for eliminating the effects of the stylized table can then be initiated (and carried out in various orders of operation without limitation).

At 424, the table's boundaries are determined. In one example, this can be done by knowing the boundaries in advance if the style of the table is known. The boundaries can also be determined by brute force examination of the image to locate a plurality of lines or changes in color that are arranged in a vertical and horizontal pattern. In such case, the boundaries of the table can be defined to be the outermost of such lines or color changes.

Once the table boundaries are known, the cell boundaries and cell sizes can be ascertained using similar methods at 428. The cell boundaries can also be identified by determining which line segments or color change boundaries create rectangular grid patterns. These boundaries define the cell of the table. The tables will generally have either known or directly readable color attributes which may vary depending upon the position of a cursor, user preferences or other factors. But, in any case, the boundaries of the cells and tables have color changes at the boundaries that can be readily identified at 432, and these boundaries can then be removed at 436 so that their effect on the OCR engine is neutralized. FIG. 10 generally depicts a set of adjacent cells in a table having a colored background 440 that contrasts the text 444's foreground color and having contrasting or color changed boundaries 448 and shadow effects 452. Once the cell and table boundaries have been identified and removed, the resulting image resembles that of FIG. 11 which represents removal of the boundaries. A space between the cells is shown in this drawing so as to continue to depict the presence of an intermediate color between the cells that is used to create the three dimensional or shadow effects, but in certain embodiments, there would be no such space once the boundaries are removed.

At this point, the boundaries of the cells and table have been removed and the process detects the presence of shadow or three dimensional effects (synonymous) if any at 456. In the case of most tables, the shadow would only appear at the edge of the table (and not between adjacent cells as shown in FIG. 10) since placing shadow effects around cells themselves uses significant amounts of usable screen area for a minimal amount of visual appeal. In the general case of a table with a shadow or 3D effect, the effect will occur on two adjacent sides and follow a path parallel to the prior location of the outer table boundaries. Hence, if a cell is determined to be an outer cell, or if a prior location of a table boundary is known, a shadow if present will appear parallel thereto and slightly outside the perimeter of the table within a relatively small number of pixels (compared to a cell size). The presence of a color transition at that point is indicative of the presence of a cell shadow. Once detected, the shadow effect can be removed at 460 as shown in FIG. 12.

It should be noted that a different technique may use the fact that highlight and shadow effects typically occur in all cells of a table. By determining that certain features are similar in cell after cell, they can be removed as they are probably not text. For example, in a 3 column and 3 row table, a highlight or shadowing on the right side of the lower left, middle, and right cells will also occur on the corresponding cells in the middle and upper rows. By taking an increasing restrictive rectangular band of pixels of a cell and subtracting them from other cells, one can determine a band size which maximizes cancellation. As one can see in FIG. 10, there a many features similar to the cells containing TEXT 1 and TEXT 2. In some cells, text will no doubt be the same, but when checked over a larger number of cells will not show a cancellation. Consequently, such a technique can be used to distinguish the cell and table from the cell text area. The highlighting and shadowing can be removed at 460 as shown in FIG. 12.

In this depiction, again a space is shown between the two adjacent cells, but the objective is generally to isolate the text and thus the data in the copy of the frame can be manipulated or the areas of the frame containing the effects can simply be ignored. If manipulated, the background color is made to be uniform in order to permit it to be readily ignored by the OCR engine.

Assuming that the working copy of the frame's data is actually manipulated, the working copy now has blocks of areas with foreground text on a substantially uniform and contrasting background at 464. This is accomplished alternatively by simply ignoring or deleting areas of the frame that represent boundaries and shadow effects. If desired, the foreground and background colors (possibly the only two relevant colors remaining) can be mapped to black or white or white on black if advantageous to the OCR engine. In any case, the text substantially appears as shown in FIG. 13. This text can then be located and processed by an OCR engine at 468 as contrasting text on a uniform contrasting background (e.g., black on white).

In certain implementations, determining if a cell has three dimensional or shadow attributes can be carried out by subtracting a variable rectangular band of pixels from other cell values to see what size band maximizes cancellation in order to distinguish the cell from the text area.

While the highlighting and shadowing effects can be eliminated from the image to facilitate OCR processing, the text found in the cell may wrap to a second line, and therefore the knowledge of the cell's location of the cell or the spacing between the blocks of text, should be used to keep the related text together. The scanned text can then be returned for analysis, for example to extract metadata as previously described at 472. In one example, this data can be used to recreate or generate a program guide in another format or to otherwise enhance programming at 476.

Certain methods of detecting text in a video display table therefore involve saving a frame of video to a memory device and determining that the frame of video contains a table having cells containing text. The text in the table can be isolated, depending upon the nature of the style of the table by any or all of removing table and cell boundaries from the image and determining if the image has three dimensional or shadow attributes and removing any three dimensional or shadow attributes identified. This produces text isolated against a contrasting color background which can be converted to a black on white image if desired for processing by an OCR engine to extract data.

Thus, in certain implementations consistent with the present invention, a method of detecting text in a television video display table involves saving a frame of video to a memory device; determining that the frame of video contains a table having cells containing text; storing a working copy of the frame of video to a memory; isolating text in the table by: removing any table boundaries from the image; removing any cell boundaries from the image; determining if the image has three dimensional or shadow attributes and removing any three dimensional or shadow attributes identified; thereby producing text isolated against a contrasting color background; and processing the isolated text using an optical character recognition (OCR) engine to extract the text as data.

In certain implementations, the method further involves converting the text isolated against a contrasting color background to black text on a white background. In certain implementations, determining that the frame of video contains a table having cells containing text is carried out by tracking remote control commands issued to identify commands that result in display of a table having cells containing text. In certain implementations, the commands include commands that cause display of a program guide, list of content, PVR list, dialogue box, closed captioning, or setup table. In certain implementations, determining that the frame of video contains a table having cells containing text is carried out by detecting rectangular shapes of size adequate to contain legible text. In certain implementations, determining that the frame of video contains a table having cells containing text is carried out by matching a display to a template. In certain implementations, removing the boundaries of the cells and the tables is carried out by matching a display to a template in order to locate the boundaries. In certain implementations, determining if the image has three dimensional or shadow attributes is carried out by finding line patterns adjacent and outside table or cell boundaries that track a boundary. In certain implementations, the method further involves storing the extracted text as data to a metadata database. In certain implementations, determining if a cell has three dimensional or shadow attributes is carried out by subtracting a variable rectangular band of pixels from other cell values to see what size band maximizes cancellation in order to distinguish the cell from the text area.

In another implementation, a method of detecting text in a television video display table involves saving a frame of video to a memory device; determining that the frame of video contains a table having cells containing text by detecting rectangular shapes of size adequate to contain legible text; storing a working copy of the frame of video to a memory; isolating text in the table by: removing any table boundaries from the image; removing any cell boundaries from the image by matching a display to a template in order to locate the boundaries; determining if the image has three dimensional or shadow attributes and removing any three dimensional or shadow attributes identified; thereby producing text isolated against a contrasting color background; and processing the isolated text using an optical character recognition (OCR) engine to extract the text as data to a metadata database. In certain implementations, the method further involves converting the text isolated against a contrasting color background to black text on a white background.

In certain implementations, determining that the frame of video contains a table having cells containing text is carried out by tracking remote control commands issued to identify commands that result in display of a table having cells containing text. In certain implementations, the commands include commands that cause display of a program guide, list of content, PVR list, dialogue box, closed captioning, or setup table. In certain implementations, determining that the frame of video contains a table having cells containing text further involves matching a display to a template. In certain implementations, determining if the image has three dimensional or shadow attributes is carried out by finding line patterns adjacent and outside table or cell boundaries that track a boundary. In certain implementations, determining if a cell has three dimensional or shadow attributes is carried out by subtracting a variable rectangular band of pixels from other cell values to see what size band maximizes cancellation in order to distinguish the cell from the text area.

In another embodiment, a method of detecting text in a television video display table involves saving a frame of video to a memory device; determining that the frame of video contains a table having cells containing text by detecting rectangular shapes of size adequate to contain legible text and then by matching a display to a template; storing a working copy of the frame of video to a memory; isolating text in the table by: removing any table boundaries from the image; removing any cell boundaries from the image by matching a display to a template in order to locate the boundaries; determining if the image has three dimensional or shadow attributes and removing any three dimensional or shadow attributes identified, wherein determining if the image has three dimensional or shadow attributes is carried out by finding line patterns adjacent and outside table or cell boundaries that track a boundary; thereby producing text isolated against a contrasting color background; converting the text isolated against a contrasting color background to black text on a white background; and processing the isolated text using an optical character recognition (OCR) engine to extract the text as data to a metadata database.

In certain implementations, determining that the frame of video contains a table having cells containing text is carried out by tracking remote control commands issued to identify commands that result in display of a table having cells containing text, wherein the commands include commands that cause display of a program guide, list of content, PVR list, dialogue box, closed captioning, or setup table. In certain implementations, determining if a cell has three dimensional or shadow attributes is further carried out by subtracting a variable rectangular band of pixels from other cell values to see what size band maximizes cancellation in order to distinguish the cell from the text area.

Those skilled in the art will recognize, upon consideration of the above teachings, that certain of the above exemplary embodiments are based upon use of one or more programmed processors. However, the invention is not limited to such exemplary embodiments, since other embodiments could be implemented using hardware component equivalents such as hard wired logic, special purpose hardware and/or dedicated processors. Similarly, general purpose computers, microprocessor based computers, micro-controllers, optical computers, analog computers, dedicated processors, application specific circuits and/or dedicated hard wired logic may be used to construct alternative equivalent embodiments.

Certain embodiments described herein, are or may be implemented using one or more programmed processors executing programming instructions that are broadly described above in flow chart form that can be stored on any suitable electronic or computer readable storage medium and/or can be transmitted over any suitable electronic communication medium. However, those skilled in the art will appreciate, upon consideration of the present teaching, that the processes described above can be implemented in any number of variations and in many suitable programming languages without departing from embodiments of the present invention. For example, the order of certain operations carried out can often be varied as noted above and additional operations can be added or operations can be deleted without departing from certain embodiments of the invention. Error trapping can be added and/or enhanced and variations can be made in user interface and information presentation without departing from certain embodiments of the present invention. Such variations are contemplated and considered equivalent.

While certain illustrative embodiments have been described, it is evident that many alternatives, modifications, permutations and variations will become apparent to those skilled in the art in light of the foregoing description. 

What is claimed is:
 1. A method of detecting text in a television video display table, comprising: saving a frame of video representing an image to a memory device; determining that the frame of video contains a table having cells containing text; storing a working copy of the frame of video to a memory; isolating text in the table by: removing any table boundaries from the image; removing any cell boundaries from the image; determining if the image has three dimensional or shadow attributes in the table boundaries or cell boundaries and removing any three dimensional or shadow attributes identified, wherein determining if the image has three dimensional or shadow attributes in the table boundaries or cell boundaries is carried out by finding line patterns adjacent and outside table or cell boundaries that track a table or cell boundary; where determining if a cell has three dimensional or shadow attributes is carried out by subtracting a variable rectangular band of pixels from other cell values to see what size band maximizes cancellation in order to distinguish the cell from the text area; thereby producing text isolated against a contrasting color background; and processing the isolated text using an optical character recognition (OCR) engine to extract the text as data.
 2. The method according to claim 1, further comprising converting the text isolated against a contrasting color background to black text on a white background.
 3. The method according to claim 1, wherein determining that the frame of video contains a table having cells containing text is carried out by tracking remote control commands transmitted from a remote control to identify commands that result in display of a table having cells containing text.
 4. The method according to claim 3, wherein the commands comprise commands that cause display of a program guide, list of content, PVR list, dialogue box, closed captioning, or setup table.
 5. The method according to claim 1, wherein determining that the frame of video contains a table having cells containing text is carried out by detecting rectangular shapes of size adequate to contain legible text.
 6. The method according to claim 1, wherein determining that the frame of video contains a table having cells containing text is carried out by matching a display to a template.
 7. The method according to claim 1, wherein removing the boundaries of the cells and the tables is carried out by matching a display to a template in order to locate the boundaries.
 8. The method according to claim 1, further comprising storing the extracted text as data to a metadata database.
 9. The method according to claim 1, where the frame of video containing the table has cells containing text of a foreground color against a background color.
 10. A method of detecting text in a television video display table, comprising: saving a frame of video representing an image to a memory device; determining that the frame of video contains a table having cells containing text by detecting rectangular shapes of size adequate to contain legible text; storing a working copy of the frame of video to a memory; isolating text in the table by: removing any table boundaries from the image; removing any cell boundaries from the image by matching a display to a template in order to locate the boundaries; determining if the image has three dimensional or shadow attributes in the table boundaries or cell boundaries and removing any three dimensional or shadow attributes identified, wherein determining if the image has three dimensional or shadow attributes in the table boundaries or cell boundaries is carried out by finding line patterns adjacent and outside table or cell boundaries that track a table or cell boundary; where determining if a cell has three dimensional or shadow attributes is carried out by subtracting a variable rectangular band of pixels from other cell values to see what size band maximizes cancellation in order to distinguish the cell from the text area; thereby producing text isolated against a contrasting color background; and processing the isolated text using an optical character recognition (OCR) engine to extract the text as data to a metadata database.
 11. The method according to claim 10, further comprising converting the text isolated against a contrasting color background to black text on a white background.
 12. The method according to claim 10, wherein determining that the frame of video contains a table having cells containing text is carried out by tracking remote control commands issued to identify commands that result in display of a table having cells containing text.
 13. The method according to claim 12, wherein the commands comprise commands that cause display of a program guide, list of content, PVR list, dialogue box, closed captioning, or setup table.
 14. The method according to claim 10, wherein determining that the frame of video contains a table having cells containing text further comprises matching a display to a template.
 15. The method according to claim 10, where the frame of video containing the table has cells containing text of a foreground color against a background color.
 16. A method of detecting text in a television video display table, comprising: saving a frame of video representing an image to a memory device; determining that the frame of video contains a table having cells containing text by detecting rectangular shapes of size adequate to contain legible text and then by matching a display to a template; storing a working copy of the frame of video to a memory; isolating text in the table by: removing any table boundaries from the image; removing any cell boundaries from the image by matching a display to a template in order to locate the boundaries; determining if the image has three dimensional or shadow attributes in the table boundaries or cell boundaries and removing any three dimensional or shadow attributes identified, wherein determining if the image has three dimensional or shadow attributes in the table boundaries or cell boundaries is carried out by finding line patterns adjacent and outside table or cell boundaries that track a table or cell boundary; where determining if a cell has three dimensional or shadow attributes is further carried out by subtracting a variable rectangular band of pixels from other cell values to see what size band maximizes cancellation in order to distinguish the cell from the text area; thereby producing text isolated against a contrasting color background; converting the text isolated against a contrasting color background to black text on a white background; and processing the isolated text using an optical character recognition (OCR) engine to extract the text as data to a metadata database.
 17. The method according to claim 16, wherein determining that the frame of video contains a table having cells containing text is carried out by tracking remote control commands issued to identify commands that result in display of a table having cells containing text, wherein the commands comprise commands that cause display of a program guide, list of content, PVR list, dialogue box, closed captioning, or setup table. 